import type { RouteObject } from "react-router-dom";
import Echart from "@/view/charts/Index"
import Dialog from "@/view/dialog/Index"
import TreeMenu from "@/view/treemenu/Index"
import Plugin from "@/view/plugins/index"
import ReactQuery from "@/view/plugins/reqactquery/index"
import Antd_demo from "@/view/antd_demo";
import Select from "@/view/antd_demo/Slect"
let routes: RouteObject[] = [
  {
    path: "/echart",
    element: <Echart />
  },
  {
    path: "/dialog",
    element: <Dialog />
  },
  {
    path: "/tree",
    element: <TreeMenu />
  },
  {
    path: "/plugin",
    element: <Plugin />,
    children: [
      { path: "/plugin/reactquery", element: <ReactQuery /> }
    ]
  },
  {
    path: "/antd",
    element: <Antd_demo />,
    children: [
      {
        path: "/antd/select",
        element: <Select />
      }
    ]
  }
]

export default routes